export default {
  path: '/discovery',
  name: 'discovery',
  component: () => import('@/view/discovery/index.vue'),
  children: [
    {
      path: 'songrank',
      name: 'songrank',
      meta: {
        keepAlive: true
      },
      component: () => import('@/view/discovery/song-rank/index.vue')
    },
    {
      path: 'playlist',
      name: 'playlist',
      meta: {
        keepAlive: false
      },
      component: () => import('components/playlist-detail/index.vue'),
      children: [
        {
          path: 'artist',
          name: 'artist',
          component: () => import('components/artist-detail/index.vue'),
        },
        {
          path: 'album',
          name: 'album',
          component: () => import('components/album-detail/index.vue'),
          children: [
            {
              path: 'albumComment',
              name: 'albumComment',
              component: () => import('components/comment/index.vue')
            },
            {
              path: 'albumArtist',
              name: 'albumArtist',
              component: () => import('components/artist-detail/index.vue')
            },
            {
              path: 'songComment',
              name: 'songComment',
              component: () => import('components/comment/index.vue')
            }
          ]
        },
        {
          path: 'comment',
          name: 'comment',
          component: () => import('components/comment/index.vue')
        }
      ]
    },
    {
      path: 'playlistCollection',
      name: 'playlistCollection',
      component: () => import('@/view/discovery/playlist-collection/index.vue')
    },
    {
      path: 'songrcmd',
      name: 'songrcmd',
      component: () => import('@/view/discovery/recommend/index.vue')
    },
    {
      path: 'download',
      name: 'download',
      component: () => import('@/components/download-mgt/index.vue')
    }
  ]
}
